<center>
  <span style="font-size:25px;"><%=@player.name%> [<%=@player.custom_name%>] - Income Statement</span><br/><br/>
<table class="allboder">
<tr align="left">
  <td>Sales</td>
  <td align="right"><%=number_with_delimiter(@pb.sold)%></td>
</tr>
<%if @pb.etc!=0%>
<tr align="left">
  <td>ETC</td>
  <td align="right"><%=number_with_delimiter(@pb.etc_revenue)%></td>
</tr>
<%end%>
<tr align="left">
  <td>&nbsp;&nbsp;&nbsp;&nbsp;COGS</td>
  <td align="right">- <%=number_with_delimiter(@pb.cogs)%></td>
</tr>
<%if @pb.etc!=0%>
<tr align="left">
  <td>&nbsp;&nbsp;&nbsp;&nbsp;ETC Cost</td>
  <td align="right">- <%=number_with_delimiter(@pb.etc_cost)%></td>
</tr>
<%end%>
<tr align="left">
  <td>&nbsp;&nbsp;&nbsp;&nbsp;Waste</td>
  <td align="right">- <%=number_with_delimiter(@pb.waste_cogs)%></td>
</tr>
<tr align="left">
  <td>&nbsp;&nbsp;&nbsp;&nbsp;Marketing</td>
  <td align="right">- <%=number_with_delimiter(@pb.marketing)%></td>
</tr>
<tr align="left">
  <td>&nbsp;&nbsp;&nbsp;&nbsp;Profit(Loss) from Futures</td>
  <td align="right"><%=number_with_delimiter(@pb.futures_revenue)%></td>
</tr>
<%if @pb.promotion!=0%>
<tr align="left">
  <td>&nbsp;&nbsp;&nbsp;&nbsp;Promotion</td>
  <td align="right">- <%=number_with_delimiter(@pb.promotion)%></td>
</tr>
<%end%>
<%ebitda = @pb.sold + @pb.etc - @pb.cogs - @pb.waste_cogs - @pb.marketing - @pb.promotion + @pb.futures_revenue%>
<tr align="left">
  <td><b>EBITDA</b></td>
  <td align="right"><%=number_with_delimiter(ebitda)%></td>
</tr>
<tr align="left">
  <td>&nbsp;&nbsp;&nbsp;&nbsp;Depreciation</td>
  <td align="right">- <%=number_with_delimiter(@pb.depreciation)%></td>
</tr>
<tr align="left">
  <td><b>EBIT</b></td>
  <td align="right"><%=number_with_delimiter(ebitda - @pb.depreciation)%></td>
</tr>
<tr align="left">
  <td>&nbsp;&nbsp;&nbsp;&nbsp;Interest</td>
  <td align="right">- <%=number_with_delimiter(@pb.debt_interest+@pb.emergency_debt_interest)%></td>
</tr>
<tr align="left">
  <td><b>EBT</b></td>
  <td align="right"><%=number_with_delimiter(@pb.ebt)%></td>
</tr>
<tr align="left">
  <td>&nbsp;&nbsp;&nbsp;&nbsp;Tax</td>
  <td align="right">- <%=number_with_delimiter(@pb.tax)%></td>
</tr>
<tr align="left">
  <td><b>Net Income</b></td>
  <td align="right"><%=number_with_delimiter(@pb.net_income)%></td>
</tr>
</table>
</center>